-- GENERATED SPELL FOR [Whitewhisker Digger] --


function spell0_11603(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(12057,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11603', 619, 1)
end

function spell1_11603(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(15572,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11603', 30308, 1)
end

function Sorts_11603(pUnit, Event)
local choix_sorts_11603 = math.random(0, 1)
if choix_sorts_11603 == 0 then
pUnit:RegisterEvent('spell0_11603', 1, 1)
end
if choix_sorts_11603 == 1 then
pUnit:RegisterEvent('spell1_11603', 1, 1)
end
end

function mob11603_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11603', math.random(1500, 3000), 1)
end

function mob11603_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11603_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11603_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11603, 1, 'mob11603_Action')
RegisterUnitEvent(11603, 2, 'mob11603_Leave')
RegisterUnitEvent(11603, 3, 'mob11603_Kill')
RegisterUnitEvent(11603, 4, 'mob11603_Die')
